/* 基础样式 */
body {
    margin: 0;
    padding: 0;
}

/* 图片侧边栏样式 */
.image-sidebar {
    width: 200px;  /* 固定宽度 */
    height: 100vh;  /* 全屏高度 */
    overflow-y: auto;  /* 垂直滚动 */
    border-right: 1px solid #ddd;
    padding: 10px;
    background: #f5f5f5;
}

.image-item {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}

.image-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.7);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 6px;
}

/* 布局容器样式 */
.container {
    display: flex;
    height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 编辑器容器样式 */
.editor-container {
    flex: 1;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    width: 100%;  /* 确保 header 本身占满宽度 */
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: calc(100% - 100px);  /* 减去退出按钮的空间 */
}

.project-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #2c3e50;
    width: 100%;
}

.project-title {
    font-weight: 600;
    color: #2980b9;
}

.last-modified {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.logout-btn {
    flex-shrink: 0;  /* 防止按钮被压缩 */
    margin-left: auto;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #e74c3c;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #c0392b;
}
